package zsc.ruanc.practicaltraining.mapper;

import zsc.ruanc.practicaltraining.model.domain.TClassification;

import java.util.Date;
import java.util.List;

public interface ClassificationMapper {


    public int insert(String className, Date created);

    public int numAndOne(String className);

    public int numAnd(String className, int count);

    public int numCutOne(String className);

    public int update(int id, String className);

    public int deleteById(Integer id);
    public int deleteByName(String className);

    // 查询name是否存在
    public boolean checkName(String className);

    // 返回所有的分类名
    public String[] getNameList();

    // 返回所有数据
    public List<TClassification> selectAll();

    // 按分类名查找
    public TClassification selectByName(String name);



}
